﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace deviceManage.Models
{
    public partial class Menu
    {
        public Menu()
        {
            RoleMenu = new HashSet<RoleMenu>();
        }

        public string Id { get; set; }
        public string Name { get; set; }
        public String Url { get; set; }
        public string Icon { get; set; }
        public int? Level { get; set; }
        public String ParentId { get; set; }
        public int sort_order { get; set; }

        public ICollection<RoleMenu> RoleMenu { get; set; }

        [NotMapped]
        public List<Menu> subMenus = new List<Menu>();
    }
}
